{include file="public_iframe:head"}
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>充值余额</h5>
                </div>
                <div class="ibox-content">
                    <form action="__URL__/doRecharge" method="post" class="form-horizontal" onsubmit="return check()" id="form">

                        <div class="form-group">
                            <label class="col-sm-2 control-label">当前余额</label>

                            <div class="col-sm-10">
                                <p class="form-control-static">{$members.amount}</p>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">请输入需要充值的金额</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" name="money" value="">
                                <input type="hidden" name="id" value="{$members.id}">
                            </div>
                        </div>

                        <div class="form-group">
                            <div class="col-sm-4 col-sm-offset-2">
                                <button class="btn btn-primary" type="submit">立即充值</button>
                                <button class="btn btn-white" type="button" onclick="javascript:history.back()">取消</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
</body>

<script>
    function check(){return;
        var form = document.getElementById('form');
        console.log(form.money);
        if(form.money.value < 1 || form.money.value == ''){
            alert('充值金额不能少于0');
            return false;
        }
    }
</script>

</html>
